/*
 * N900ClientConnect.h
 *
 *  Created on: Aug 18, 2016
 *      Author: ubuntu
 */

#ifndef N900_N900CLIENTCONNECT_H_
#define N900_N900CLIENTCONNECT_H_

#include "../ClientConnect.h"
#include "N900DevStatus.h"

class N900ClientConnection : public ClientConnection
{
public:
	N900ClientConnection(TcpServer *parent, struct connectop *op, struct sockaddr *addr);
	virtual ~N900ClientConnection();

protected:
	virtual bool parsePackage(unsigned char *buf, size_t len, int add_head, int add_tail);

	size_t min_len;
	unsigned int obdid;

private:
	N900DevStatus *pStatus;
};



#endif /* N900_N900CLIENTCONNECT_H_ */
